package com.zp.base.entity.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.zp.common.excel.annotation.ExcelDictFormat;
import com.zp.common.excel.convert.ExcelDictConvert;
import lombok.Data;

import java.util.Date;


/**
 * 用药途径视图对象
 *
 * @author zhang peng
 * @date 2023-01-03
 */
@Data
@ExcelIgnoreUnannotated
public class AdministrationDictVo {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private String id;

    /**
     * 数据标签
     */
    @ExcelProperty(value = "数据标签")
    private String label;

    /**
     * 机构id
     */
    @ExcelProperty(value = "机构id")
    private String orgId;

    /**
     * 类型
     */
    @ExcelProperty(value = "类型")
    private String type;

    /**
     * 数据值
     */
    @ExcelProperty(value = "数据值")
    private String value;

    /**
     * 排序
     */
    @ExcelProperty(value = "排序")
    private Long sort;

    /**
     * 门诊住院标识
     */
    @ExcelProperty(value = "门诊住院标识", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "clinic_or_visit")
    private String outpOrInp;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
